package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("olcubirimHome")
public class OlcubirimHome extends EntityHome<Olcubirim> {

	public void setOlcubirimId(Long id) {
		setId(id);
	}

	public Long getOlcubirimId() {
		return (Long) getId();
	}

	@Override
	protected Olcubirim createInstance() {
		Olcubirim olcubirim = new Olcubirim();
		return olcubirim;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Olcubirim getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
